device: Fix dispose
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 24 Nov 2015 16:53:41 +0000 (17:53 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 24 Nov 2015 19:52:12 +0000 (20:52 +0100)
commitcc2e77295ef3c1acc81ccbe45e1cf063d45b9058
treed90555756ba5a21976c040443bb15e8acbd593a0
parentd62febcf97581528398f79e8094eb26f8461b315
device: Fix dispose

The way master devices detach from their other master counterpart is
vulnerable to infinite recursion due to the way we first recurse on
the other device before clearing the pointer, this may happen if
that last reference to the other master device is held by the
device->associated field.

https://bugzilla.gnome.org/show_bug.cgi?id=732742
gdk/gdkdevice.c